function setRem() {
  const clientWidth = document.documentElement.clientWidth;
  const rem = clientWidth / 100;
  document.documentElement.style.fontSize = rem + "px";
}
setRem();
// 监听窗口调整事件
window.onresize = setRem;
